import type { RouteRecordRaw } from 'vue-router'

const activityRoutes: RouteRecordRaw[] = [
  {
    path: '/activities',
    name: 'Activities',
    component: () => import('@/layouts/AdminLayout.vue'),
    meta: {
      title: '活动管理',
      icon: 'Calendar',
      requiresAuth: true,
      permissions: ['activity:read']
    },
    children: [
      {
        path: '',
        name: 'ActivityList',
        component: () => import('@/views/activities/ActivityList.vue'),
        meta: {
          title: '活动列表',
          icon: 'List',
          requiresAuth: true,
          permissions: ['activity:read']
        }
      },
      {
        path: ':id',
        name: 'ActivityDetail',
        component: () => import('@/views/activities/ActivityDetail.vue'),
        meta: {
          title: '活动详情',
          icon: 'View',
          requiresAuth: true,
          permissions: ['activity:read'],
          hidden: true
        }
      }
    ]
  }
]

export default activityRoutes
